package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.MdjfCaseMainMessageMapper;
import com.ruoyi.system.domain.MdjfCaseMainMessage;
import com.ruoyi.system.service.IMdjfCaseMainMessageService;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-04-18
 */
@Service
public class MdjfCaseMainMessageServiceImpl implements IMdjfCaseMainMessageService 
{
    @Autowired
    private MdjfCaseMainMessageMapper mdjfCaseMainMessageMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param id 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public MdjfCaseMainMessage selectMdjfCaseMainMessageById(Long id)
    {
        return mdjfCaseMainMessageMapper.selectMdjfCaseMainMessageById(id);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param mdjfCaseMainMessage 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<MdjfCaseMainMessage> selectMdjfCaseMainMessageList(MdjfCaseMainMessage mdjfCaseMainMessage)
    {
        return mdjfCaseMainMessageMapper.selectMdjfCaseMainMessageList(mdjfCaseMainMessage);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param mdjfCaseMainMessage 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertMdjfCaseMainMessage(MdjfCaseMainMessage mdjfCaseMainMessage)
    {
        mdjfCaseMainMessage.setCreateTime(DateUtils.getNowDate());
        return mdjfCaseMainMessageMapper.insertMdjfCaseMainMessage(mdjfCaseMainMessage);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param mdjfCaseMainMessage 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateMdjfCaseMainMessage(MdjfCaseMainMessage mdjfCaseMainMessage)
    {
        mdjfCaseMainMessage.setUpdateTime(DateUtils.getNowDate());
        return mdjfCaseMainMessageMapper.updateMdjfCaseMainMessage(mdjfCaseMainMessage);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param ids 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteMdjfCaseMainMessageByIds(Long[] ids)
    {
        return mdjfCaseMainMessageMapper.deleteMdjfCaseMainMessageByIds(ids);
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param id 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteMdjfCaseMainMessageById(Long id)
    {
        return mdjfCaseMainMessageMapper.deleteMdjfCaseMainMessageById(id);
    }
}
